package com.lan.app.service;


import com.lan.app.repository.Tp;
import com.lan.support.page.Page;
import com.lan.support.page.PageHelper;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ITpService {

    @Transactional
    Integer save(Tp tp);

    @Transactional
    int del(Integer id);

    @Transactional
    int modifyDel(Integer id);

    @Transactional
    int updateById(Tp ctp);

    Tp get(Integer id);

    Page<Tp> page(PageHelper helper, Tp tp);

    List<Tp> getList(Integer tbId);
}